﻿/*
 * Copyright © 2011 Tristan Reeves, treeves@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace Sprinkles.Tests.TestClasses
{
    public class TestInstanceFactory
    {
        public InstanceFactoryTestClass CreateOne()
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 1;
            return result;
        }
        public object UntypedCreateOne()
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 2;
            return result;
        }
        public InstanceFactoryTestClass CreateOne(object o)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 1;
            result.OO1 = o;
            return result;
        }
        public object UntypedCreateOne(object o)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 2;
            result.OO1 = o;
            return result;
        }
        public InstanceFactoryTestClass CreateOne(object o1, object o2)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 1;
            result.OO1 = o1;
            result.OO2 = o2;
            return result;
        }
        public object UntypedCreateOne(object o1, object o2)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 2;
            result.OO1 = o1;
            result.OO2 = o2;
            return result;
        }
        public InstanceFactoryTestClass CreateOne(object o1, object o2, object o3)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 1;
            result.OO1 = o1;
            result.OO2 = o2;
            result.OO3 = o3;
            return result;
        }
        public object UntypedCreateOne(object o1, object o2, object o3)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 2;
            result.OO1 = o1;
            result.OO2 = o2;
            result.OO3 = o3;
            return result;
        }
        public InstanceFactoryTestClass CreateOne(object o1, object o2, object o3, object o4)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 1;
            result.OO1 = o1;
            result.OO2 = o2;
            result.OO3 = o3;
            result.OO4 = o4;
            return result;
        }
        public object UntypedCreateOne(object o1, object o2, object o3, object o4)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 2;
            result.OO1 = o1;
            result.OO2 = o2;
            result.OO3 = o3;
            result.OO4 = o4;
            return result;
        }
        public InstanceFactoryTestClass CreateOne(object o1, object o2, object o3, object o4, object o5)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 1;
            result.OO1 = o1;
            result.OO2 = o2;
            result.OO3 = o3;
            result.OO4 = o4;
            result.OO5 = o5;
            return result;
        }
        public object UntypedCreateOne(object o1, object o2, object o3, object o4, object o5)
        {
            var result = new InstanceFactoryTestClass();
            result.CTR = 2;
            result.OO1 = o1;
            result.OO2 = o2;
            result.OO3 = o3;
            result.OO4 = o4;
            result.OO5 = o5;
            return result;
        }
    }
}
